package com.chazz.dao;

import com.chazz.dao.impl.UserDaoImpl;
import com.chazz.entity.User;

public class Test {
    public static void main(String[] args) {
        User user =new User();
        user.setEmail("1308147704@qq.com");
        user.setPhone("11111111111");
        user.setSex(1);
        user.setUsername("谭士林2");
        UserDaoImpl udi=new UserDaoImpl();

        int rt=udi.updateByUser(user);
        if(rt>0){
            System.out.println("修改成功");
        }else{
            System.out.println("修改失败");
        }
    }
}
